package config

type ServiceConfig struct {
	Name          string        `mapstructure:"name" json:"name"`
	Port          int           `mapstructure:"port" json:"port"`
	UserSrvConfig UserSrvConfig `mapstructure:"user-srv" json:"user-srv"`
	ConsulConfig  ConsulConfig  `mapstructure:"consul" json:"consul"`
}

type JwtConfig struct {
	SigningKey string `mapstructure:"signing"`
}

type ConsulConfig struct {
	Port string `mapstructure:"port"`
	Host string `mapstructure:"host"`
}
type UserSrvConfig struct {
	Host string `mapstructure:"host"`
	Port string `mapstructure:"port"`
	Name string `mapstructure:"name"`
}

type NacosConfig struct {
	IpAddress           string `mapstructure:"ip_address"`
	ContextPath         string `mapstructure:"context_path"`
	Port                uint64 `mapstructure:"port"`
	Scheme              string `mapstructure:"scheme"`
	NamespaceId         string `mapstructure:"namespace_id"`
	TimeoutMs           uint64 `mapstructure:"timeout_ms"`
	NotLoadCacheAtStart bool   `mapstructure:"not_load_cache_at_start"`
	LogDir              string `mapstructure:"log_dir"`
	CacheDir            string `mapstructure:"cache_dir"`
	LogLevel            string `mapstructure:"log_level"`
	Group               string `mapstructure:"group"`
	DataId              string `mapstructure:"data_id"`
}
